package myJs.myPkg.highcharts

import myJs.myPkg.jquery.JQuery
import myJs.myPkg.jsext._

import scala.scalajs.js
import scala.language.implicitConversions
import scala.scalajs.js.JSConverters._
import scala.scalajs.js.annotation.JSImport
import scala.scalajs.js.annotation.JSImport.Namespace

/**
 * Created by yz on 2019/3/14
 */

object Chart extends ChartBuilder(noOpts)

class ChartBuilder(val dict: OptMap) extends JSOptionBuilder[Chart, ChartBuilder](new ChartBuilder(_)) {

  def `type`(v: String) = jsOpt("type", v)

  def map(v: String) = jsOpt("map", v)

  def height(v: Double) = jsOpt("height", v)

  def marginTop(v: Double) = jsOpt("marginTop", v)

  def marginBottom(v: Double) = jsOpt("marginBottom", v)

  def spacingLeft(v: Double) = jsOpt("spacingLeft", v)

}

trait Chart extends js.Object {

}
